package dream.zyp.ballgame.component;

import android.graphics.Color;

/**
 * Created by ZYP on 2017/3/5.
 * 挡板类
 * y坐标应该为 屏幕最下面的y值 - 10
 */
public class Baffle {
    public final static int DISTANCE_OF_BOTTOM = 10; //距离底部距离

    public float x;

    public float y;

    private int baffleWidth, baffleHeight;

    private int baffleColor;

    public Baffle(){
        //设置默认挡板高度，和宽度
        baffleWidth = 200;
        baffleHeight = 10;
        baffleColor = Color.BLACK;
    }

    public int getBaffleWidth() {
        return baffleWidth;
    }

    public void setBaffleWidth(int baffleWidth) {
        this.baffleWidth = baffleWidth;
    }

    public int getBaffleHeight() {
        return baffleHeight;
    }

    public void setBaffleHeight(int baffleHeight) {
        this.baffleHeight = baffleHeight;
    }

    public int getBaffleColor() {
        return baffleColor;
    }

    public void setBaffleColor(int baffleColor) {
        this.baffleColor = baffleColor;
    }
}
